Rename gdk_device_get_position_double
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 00:30:15 +0000 (20:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 22:12:55 +0000 (18:12 -0400)
We can drop the double suffix now.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkdevice.c
gdk/gdkdevice.h
gdk/win32/gdkdrag-win32.c
gdk/x11/gdkdrag-x11.c
gtk/gtknotebook.c
gtk/gtkwidget.c
gtk/gtkwindow.c

index 5e91f9c21e3259043c5fb3c568b1c67b725e7e70..0e52bcafdcd29037f40995340227c23a609de8f5 100644 (file)
@@ -509,7 +509,7 @@ gdk_device_ungrab
 
 <SUBSECTION>
 gdk_device_get_state
-gdk_device_get_position_double
+gdk_device_get_position
 gdk_device_get_surface_at_position
 gdk_device_get_surface_at_position_double
 gdk_device_get_history
index 2044becfe54b82008ddc1a013604522ff88fd45d..ec46684e12d6428c434ec40cd8716b9d9ddb8294 100644 (file)
@@ -529,7 +529,7 @@ gdk_device_get_state (GdkDevice       *device,
 }
 
 /**
- * gdk_device_get_position_double:
+ * gdk_device_get_position:
  * @device: pointer device to query status about.
  * @x: (out) (allow-none): location to store root window X coordinate of @device, or %NULL.
  * @y: (out) (allow-none): location to store root window Y coordinate of @device, or %NULL.
@@ -540,9 +540,9 @@ gdk_device_get_state (GdkDevice       *device,
  * unless there is an ongoing grab on them. See gdk_device_grab().
  **/
 void
-gdk_device_get_position_double (GdkDevice        *device,
-                                gdouble          *x,
-                                gdouble          *y)
+gdk_device_get_position (GdkDevice *device,
+                         double    *x,
+                         double    *y)
 {
   GdkDisplay *display;
   gdouble tmp_x, tmp_y;
index aa07f3f9b17aad0707281e7f2152edebaf640667..d86179b638deda50b1a5c4e917e632c7f0671683 100644 (file)
@@ -173,9 +173,9 @@ GdkSurface *
                                   gint              *win_x,
                                   gint              *win_y);
 GDK_AVAILABLE_IN_ALL
-void     gdk_device_get_position_double (GdkDevice         *device,
-                                         gdouble           *x,
-                                         gdouble           *y);
+void     gdk_device_get_position (GdkDevice *device,
+                                  double    *x,
+                                  double    *y);
 GDK_AVAILABLE_IN_ALL
 GdkSurface *
          gdk_device_get_surface_at_position_double
index 5583ac94218882f04ee68fa80326347db3e269af..25723451e2492ce96d2604ac25f2a79283c91fd0 100644 (file)
@@ -1732,7 +1732,7 @@ _gdk_win32_surface_drag_begin (GdkSurface         *surface,
 
   GDK_NOTE (DND, g_print ("_gdk_win32_surface_drag_begin\n"));
 
-  gdk_device_get_position_double (device, &px, &px);
+  gdk_device_get_position (device, &px, &px);
   x_root = round (px) + dx;
   y_root = round (py) + dy;
 
index 4305bdaf13a3843b97be4336481a77e83aa74177..2a7e705c237a1c162288d4f4625480c3a3bac862 100644 (file)
@@ -2098,7 +2098,7 @@ _gdk_x11_surface_drag_begin (GdkSurface         *surface,
 
   precache_target_list (drag);
 
-  gdk_device_get_position_double (device, &px, &py);
+  gdk_device_get_position (device, &px, &py);
   x_root = round (px) + dx;
   y_root = round (py) + dy;
 
index 4afc889aee310e840cb9ffc75f0b0d7d7ca04932..868bbfa956363a0d0a83b899259fc2d717024d60 100644 (file)
@@ -3139,7 +3139,7 @@ gtk_notebook_drag_end (GtkWidget      *widget,
       GtkNotebook *dest_notebook = NULL;
       double x, y;
 
-      gdk_device_get_position_double (gdk_drag_get_device (drag), &x, &y);
+      gdk_device_get_position (gdk_drag_get_device (drag), &x, &y);
       g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
                      priv->detached_tab->child, round (x), round (y), &dest_notebook);
 
@@ -3188,7 +3188,7 @@ gtk_notebook_drag_failed (GtkWidget      *widget,
       GtkNotebook *dest_notebook = NULL;
       double x, y;
 
-      gdk_device_get_position_double (gdk_drag_get_device (drag), &x, &y);
+      gdk_device_get_position (gdk_drag_get_device (drag), &x, &y);
 
       g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
                      priv->detached_tab->child, round (x), round (y), &dest_notebook);
index 7eaf9ade9bc4334090538e62f7b35582809b8278..f23e28ea01237d3eaa8690ca39f6d136d3c80e0f 100644 (file)
@@ -8642,9 +8642,9 @@ synth_crossing (GtkWidget       *widget,
   event->any.send_event = TRUE;
   event->crossing.child_surface = g_object_ref (surface);
   event->crossing.time = GDK_CURRENT_TIME;
-  gdk_device_get_position_double (device,
-                                  &event->crossing.x_root,
-                                  &event->crossing.y_root);
+  gdk_device_get_position (device,
+                           &event->crossing.x_root,
+                           &event->crossing.y_root);
   gdk_surface_get_device_position (surface,
                                    device,
                                    &event->crossing.x,
index 71be75328a9f0d2cddd3dc738ec7ec71cdc1a7de..8e3024e095ab97625c33f5528f3f43da3409cc0e 100644 (file)
@@ -7265,7 +7265,7 @@ get_monitor_containing_pointer (GtkWindow *window)
   GdkDevice *pointer;
 
   pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (priv->display));
-  gdk_device_get_position_double (pointer, &px, &py);
+  gdk_device_get_position (pointer, &px, &py);
 
   return gdk_display_get_monitor_at_point (priv->display, round (px), round (py));
 }
@@ -7432,7 +7432,7 @@ gtk_window_compute_configure_request (GtkWindow    *window,
 
             pointer = gdk_seat_get_pointer (gdk_display_get_default_seat (priv->display));
 
-            gdk_device_get_position_double (pointer, &px, &py);
+            gdk_device_get_position (pointer, &px, &py);
             monitor = gdk_display_get_monitor_at_point (priv->display, round (px), round (py));
 
             x = round (px) - w / 2;